package business.mention;

/**
 * @author golfTeamwork
 *
 */

@SuppressWarnings("serial")
public class MentionException extends RuntimeException {

	// code d'erreur
	private int code;

	public MentionException(int code) {
		super();
		this.code = code;
	}

	public MentionException(String message, int code) {
		super(message);
		this.code = code;
	}

	public MentionException(Throwable cause, int code) {
		super(cause);
		this.code = code;
	}

	public MentionException(String message, Throwable cause, int code) {
		super(message, cause);
		this.code = code;
	}

	// getter et setter

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

}